package com.groovy.base

class GroovyMap {
    static void main(String[] args) {
        def mp = ["TopicName" : "Maps", "TopicDescription" : "Methods in Maps"]
        println(mp.get("TopicName"));
        println(mp.get("Topic"));

        println(mp.containsKey("TopicName"));
        println(mp.containsKey("Topic"));

        println(mp.keySet());

        println(mp.values())
        def put = mp.put("key", "value")
        println(put)
        def put1 = mp.put("key", "newValue")
        println(put1)
        println(mp.size())
    }
}
